// components/selectCell/selectCell.js
Component({
  /**
   * 组件的属性列表
   */
  properties: {
    bottomLine: {
      type: Boolean,
      value: true
    },
    title: {
      type: String,
      value: ""
    },
    key: {
      type: String,
      value: ""
    },
    selectData: {
      type: Object,
      value: {}
    },
    right: {
      type: Boolean,
      value: false
    },
    placeholder: {
      type: String,
      value: "请选择"
    },
    // 相对于这个贷款那边的字体，高度大一些
    isBig: {
      type: Boolean,
      value: false
    },

  },
  observers: {
    'selectData': function (newValue) {
      this.setData({
        showData: newValue
      })
    }
  },

  /**
   * 组件的初始数据
   */
  data: {
    showData: {},
  },
  lifetimes: {
    attached: function () {
      // 在组件实例进入页面节点树时执行
      if (this.properties.selectData) {
        this.setData({
          showData: this.properties.selectData
        })
      }


    },
    detached: function () {

    },
  },

  /**
   * 组件的方法列表
   */
  methods: {

  }
})
